// import type { AddressParams, AddressItem } from '@/types/member'
import { http } from '@/utils/http'
import type { DeliverymanInfoDTO, DriverFaceModelForm } from '@/types/driver'
/**
 * 获取认证信息
 * @param data 请求参数
 */
export const authInfoAPI = (id: string) => {
  return http<DeliverymanInfoDTO>({
    method: 'GET',
    url: '/sys/app/deliverymaninfo/' + id,
    data: {},
  })
}
export const updateDriverAuthInfoAPI = (data: DeliverymanInfoDTO) => {
  return http({
    method: 'POST',
    url: '/sys/app/deliverymaninfo/updateDriverAuthInfo',
    data,
  })
}
export const createDriverFaceModelAPI = (data: DriverFaceModelForm) => {
  return http({
    method: 'POST',
    url: '/sys/app/deliverymaninfo/creatDriverFaceModel',
    data,
  })
}
